<%-- 
  -- Body List para Student inscriptos en un Course.
  --
  -- @author ariel.piechotka
--%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/displaytag-el.tld" prefix="display" %>

<%-- Librerias para EXT library --%>
<link rel="stylesheet" type="text/css" href="<html:rewrite page='/protected/script/ext-1.1.1/resources/css/ext-all.css'/>" />
<link rel="stylesheet" type="text/css" href="<html:rewrite page='/protected/script/ext-1.1.1/resources/css/xtheme-default.css'/>" />

<script src="<html:rewrite page='/protected/script/ext-1.1.1/adapter/ext/ext-base.js'/>" type="text/javascript"></script>
<script src="<html:rewrite page='/protected/script/ext-1.1.1/ext-all.js'/>" type="text/javascript"></script>

<%-- El ID del form NO debe ser modificado. Se usa desde el menu --%>
<html:form action="/protected/listEnrollments.do" styleId="courseFormId">

    <h2>Participantes</h2>

    <bean:define id="students" name="enrollmentForm" property="students" />

    <display:table name="pageScope.students" sort="list" export="true" pagesize="25" requestURI="/protected/listStudents.do" id="row" class="displayTable">
    
        <display:column title="Nombre" property="name" sortable="true" />
        <display:column title="Apellido" property="surname" sortable="true" />
        <display:column title="Documento" property="personalId" sortable="true" />
		<display:column media="csv excel pdf" title="Calle" property="address.street" sortable="false" />
        <display:column media="csv excel pdf" title="Numero" property="address.number" sortable="false" />
        <display:column media="csv excel pdf" title="Piso" property="address.floor" sortable="false" />
        <display:column media="csv excel pdf" title="Depto" property="address.room" sortable="false" />
        <display:column media="csv excel pdf" title="Ciudad" property="address.city" sortable="false" />
        <display:column media="csv excel pdf" title="Localidad" property="address.town" sortable="false" />
        <display:column media="csv excel pdf" title="Nacionalidad" property="nationality" sortable="false" />
        <display:column media="csv excel pdf" title="Email" property="email" sortable="false" />
        <display:column media="csv excel pdf" title="Telefono" property="phone" sortable="false" />
        <display:column media="csv excel pdf" title="Celular" property="mobile" sortable="false" />
        <display:column media="csv excel pdf" title="Fecha Alta" property="registerDate" sortable="false" format="{0,date,dd/MM/yyyy}" />
        
    </display:table>

</html:form>
